Are you swapped? Increase the performance of Linux machine.

2010-07-14 2 min read Fedora Linux

With the ever increasing cost of the Hardware, the amount of physical RAM available on the system is increasing day by day. For example, couple of years back, I had a system which was very high end Desktop with 256MB RAM and today I have a 2GB RAM Desktop. So, whats the point.

The Linux systems (right word should be kernel) are desiged to use both RAM and swap partition. Swap partition is a partition on Hard disk and is used mostly like RAM. Problem is that HDD access is always slower than RAM access and hence inherently, the system will work little slower even if you have enough RAM not to use swap. The term ”swappiness” is used to determine how the kernel should try to seam-balance between the use of RAM and swap. By default, most of the distro’s have a swappiness of 60. A higher value of swappiness means that the RAM will be swapped out faster.

Continue reading

A Five-Way Linux Distribution Comparison In 2010

2010-07-14 0 min read Linux Uncategorized
\"Tux,
Image via Wikipedia

<a href="http://www.phoronix.com/scan.php?page=article&item=linux_2010_fiveway&num=1" target="_blank">A five way linux comparison.

A very good comparison of the most common and famous distributions of <a class="zem_slink freebase/guid/9202a8c04000641f8000000000dafbd5" title="Linux" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux">Linux. Very comprehensive and detailed. Love this guy.<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://lifehacker.com/5585048/spotify-streaming-music-player-comes-to-linux">Spotify Streaming Music Player Comes to Linux [Downloads] (lifehacker.com) <li class="zemanta-article-ul-li"><a href="http://sathyasays.com/2010/07/13/spotify-for-linux/">Spotify for Linux (sathyasays.com) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_c16.gif" alt="Enhanced by Zemanta" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading

jumps and marks in vim

2010-07-11 3 min read Linux Vim Tips

First we will talk about jumps in vim. Very useful for <a class="zem_slink freebase/en/navigation" title="Navigation" rel="wikipedia" href="http://en.wikipedia.org/wiki/Navigation">navigation and jumping around the vim. The jumps are commands that lets you jump from one location to another location, like {{ or [[ and so on … From the help file of vim

A &#8221;jump&#8221; is one of the following commands: &#8221;&#8217;&#8221;, &#8221;`&#8221;, &#8221;G&#8221;, &#8221;/&#8221;, &#8221;?&#8221;, &#8221;n&#8221;,
&#8221;N&#8221;, &#8221;%&#8221;, &#8221;(&#8221;, &#8221;)&#8221;, &#8221;[[&#8221;, &#8221;]]&#8221;, &#8221;{&#8221;, &#8221;}&#8221;, &#8221;:s&#8221;, &#8221;:tag&#8221;, &#8221;L&#8221;, &#8221;M&#8221;, &#8221;H&#8221; and
the commands that start editing a new file.  If you make the <a class="zem_slink freebase/en/cursor" title="Cursor (computers)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Cursor_%28computers%29">cursor &#8221;jump&#8221;
with one of these commands, the position of the cursor before the jump is
remembered.  You can return to that position with the &#8221;&#8217;&#8217;&#8221; and &#8221;“&#8221; command,
unless the line containing that position was changed or deleted.

Continue reading

CLI Color and bash prompt.. some colored fun with prompts in bash

2010-06-29 5 min read Bash Fedora Linux

There are two ways to do it, one is with tput command. We will see that some other time, today we will consider the escape sequence way.

First we need to understand the colors as understood by bash. Some time back a fried of mine gave me this little script to find the colors. You can download it <a href="http://blog.amit-agarwal.co.in/2009/03/bash_colors" target="_blank">Script bash colors. Here is the script

#!/bin/bash

T=&#8217;amit agarwal&#8217;   # The test text

Continue reading

Recovering Deleted Files With lsof

2010-06-29 1 min read Fedora Linux

Quick update, found this nice article on how to recover deleted file, if its still open by some process.
<a href="http://www.serverwatch.com/tutorials/article.php/3822816">Recovering Deleted Files With lsof

blogtk — Unsupported XML-RPC protocol

2010-06-29 2 min read Linux

Earlier I had talked about this blog client, did I. If not then there is a nice blogging clinet called BloGTK, which can be used directly to post into the blog.

So today I reinstalled it and I was completely at loss with the client being unable to start with the error below:

/usr/lib/python2.5/site-packages/blogtk/BloGTK.py:407: GtkDeprecationWarning: gtk.TRUE is deprecated, use True instead
self.publishCheck.set_active(gtk.TRUE)
Traceback (most recent call last):
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 1244, in module
blogtk = BloGTK()
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 138, in __init__
self.grabConfig()
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 426, in grabConfig
self.rpcServer = proxy.get_xmlrpc_server(self.url)
File &#8221;/usr/lib/python2.5/site-packages/blogtk/proxy.py&#8221;, line 66, in get_xmlrpc_server
return server(url)
File &#8221;/usr/lib/python2.5/xmlrpclib.py&#8221;, line 1414, in __init__
raise IOError, &#8221;unsupported XML-RPC protocol&#8221;
IOError: unsupported XML-RPC protocol

Continue reading

wordpress blog stats monitoring from remote using curl and bash and send it in mail.

2010-06-25 3 min read Bash Fedora Linux

Here&#8217;s something that I had been planning to do for sometime now. I have my blog on wordpress and have Statpress plugin installed. The plugin does give me a good idea of the visits to my site. Now, I have to keep logging in every now and then to check the stats. Also since I did not want to spend some more amount 🙂 so I do not have the shell access to the server, too bad 🙁

Continue reading
Older posts Newer posts